<?php
class newsViewModel extends viewModel {

    public $table = "news";
    public $view = array(
		"comment"=>array(
			"join_type" => "inner",
            "on" => "news.id = comment.id"
		),
		"user"=>array(
			"join_type" => "inner",
            "on" => "news.uid = user.uid"
		)/* ,
		
        "category" => array(
            "join_type" => "inner",
            "on" => "news.catid = category.catid"
        ) */
        /* "news" => array(
            "join_type" => "inner",
            "on" => "news.uid = user.uid"
        ) */
		
    );

}

?>
